<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/taglibs-struts2.jsp" %>

<c:choose>
<c:when test="${!empty user}">
<form name="searchform" action="user!saveStaffArea.action" method="post">
<input type="hidden" name="userId" value="<c:out value="${user.id}"/>"/>
<div class="right2">
  <div class="right600b"><h2><img src="<c:url value="/images/r101.jpg"/>"/></h2>
    <h2 class="r101">订单处理员所属洲设置</h2>
  <h2><img src="<c:url value="/images/r103.jpg"/>"/></h2></div>

<div class="rightk">
  <h3>用户名：</h3>
  <h2><c:out value="${realName}"/></h2></div>
  
<div class="rightk">
<c:forEach var="bh" items="${hasArea}" varStatus="status">
  <c:choose>
    <c:when test="${status.index==0}"><input type="checkbox" name="area" value="ASIA" <c:if test="${bh}">checked</c:if>/>亚洲</c:when>
    <c:when test="${status.index==1}"><input type="checkbox" name="area" value="AMER" <c:if test="${bh}">checked</c:if>/>美洲</c:when>
    <c:when test="${status.index==2}"><input type="checkbox" name="area" value="EURO" <c:if test="${bh}">checked</c:if>/>欧洲</c:when>
    <c:when test="${status.index==3}"><input type="checkbox" name="area" value="AFRI" <c:if test="${bh}">checked</c:if>/>非洲</c:when>
  </c:choose>
</c:forEach>
</div>

<div class="rightk2"><h3/><h2><img height="22" border="0" width="90" src="<c:url value="/images/t03.jpg"/>" onclick="submitSearch();"/></h2>
<h2><img height="20" width="60" src="<c:url value="/images/t04.jpg"/>"/></h2>
</div>
</form>

<script type="text/javascript">
function submitSearch(){
window.document.searchform.submit();
}
</script>
</div>

</c:when>
<c:otherwise>
<h3>没有该用户或该用户不是票务员</h3>
</c:otherwise>
</c:choose>